<?php

class Factory{
    public static function M($model_name){//单例工厂类
        static $model_list= array(); //保存用户的类
        if(!isset($model_list[$model_name])){
            //include_once './App/Test/Model/'.$model_name.'.class.php';
            $model_list[$model_name] = new $model_name;
           
        }
            return  $model_list[$model_name];
    }



}